package com.suifeng.card.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * (Product)实体类
 *
 */
@Data
public class Product implements Serializable {
    private static final long serialVersionUID = 613777486932972272L;
    
    private Integer id;
    
    private String name;
    
    private Integer duration;
    
    private Double originalprice;
    
    private Double price;
    
    private Double monthlyprice;
    
    private Integer enable;
    
    private Integer sort;
    
    private String description;
    
    private Integer ispopular;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "createTime",fill = FieldFill.INSERT)
    private Date createtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;

}

